import http from "@/api/httpApi/base/http.js";

//获取卡密列表
export const getCarmineList = (page = 1, size = 10, money = '', userId = '', used = '', startTime = '', endTime = '') => {
    return http.requestGet("/admin/carmine/list/" + page + "/" + size + "?money=" + money + "&userId=" + userId + "&used=" + used + "&startTime=" + startTime + "&endTime=" + endTime,);
};

//删除卡密
export const delCarmine = (ids) => {
    return http.requestDeleteArr("/admin/carmine", "id", ids);
};

//添加卡密
export const addCarmine = (carmine) => {
    return http.requestPost("/admin/carmine", carmine);
};